<?php
/**
 * <b>RUBIK IT Solution & Development ltd.</b>
 *
 * PROJECT		: Rubik Ultimate Framework
 * @version 	: 1.1
 * COPYRIGHT    : 2008
 * ------------------------------------------------------
 * 
 * Created on	:  Aug 15, 2008
 * 
 */

// no direct access
defined ( '_FW_EXEC' ) or die ( 'Restricted access' );

RCoreImporter::cls( "security.AbstractDOSDetect" );

class SessionDOSDetect extends AbstractDOSDetect {
	
	/**
	 * load the start time and number of limitation from some where in "memory"
	 *
	 */
	function _loadLimitInfo() {
		$this->_startTime = $_SESSION ['DOSDetect_startTime'];
		$this->_numberRequest = $_SESSION ['DOSDetect_numberRequest'];
	}
	
	/**
	 * save the start time and number of limitation into some where in "memory"
	 *
	 */
	function _saveLimitInfo() {
		$_SESSION ['DOSDetect_startTime'] = $this->_startTime;
		$_SESSION ['DOSDetect_numberRequest'] = $this->_numberRequest;
	}
}
?>